#
#make for first assignment
#
CC=gcc
CFLAG=-g 
a.out: telbook.o create_book.o write_entry.o read_entry.o myusage.o write_log.o
	$(CC) $(CFLAG) telbook.o create_book.o write_entry.o read_entry.o myusage.o write_log.o
telbook.o: telbook.c telbook.h
	$(CC) -c telbook.c
create_book.o: create_book.c telbook.h
	$(CC) -c create_book.c
write_entry.o: write_entry.c telbook.h
	$(CC) -c write_entry.c
read_entry.o: read_entry.c telbook.h
	$(CC) -c read_entry.c
myusage.o: myusage.c telbook.h
	$(CC) -c myusage.c
write_log.o: write_log.c telbook.h
	$(CC) -c write_log.c
clean:
	rm -f a.out
	rm -f *.o
	rm -f *~
	rm -f core
demo: a.out
	a.out
	
